<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    <style>
        body, html {
            background: #FFFFFF;
        }
        .layui-form-label {
            padding: 6px 15px 6px 0;
            width: 110px;
        }
        .layui-input {
            line-height: 32px;
            height: 32px;
        }
        .layui-input-block {
            margin-left: 140px;
            min-height: 36px;
        }
        .layui-elem-field legend {
            color: #000000;
            font-weight: 400;
        }
        .layui-upload-drag {
            margin-left: 140px;
        }
        #upload-hint {
            display: none;
        }
    </style>
</head>
<body>
<div class="layui-container">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>添加资源</legend>
    </fieldset>
    <div class="layui-row">
        <div class="layui-col-xs12 layui-col-sm10 layui-col-md10" style="padding: 20px;">
            <form class="layui-form" action="">
                <div class="layui-form-item">
                    <label class="layui-form-label">产品名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="name" lay-verify="required" autocomplete="off" placeholder="请输入标题"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">生产单位</label>
                    <div class="layui-input-block">
                        <input type="text" name="department"  placeholder="请输入生产单位" autocomplete="off" lay-verify="required"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">生产时间</label>
                    <div class="layui-input-block">
                        <input type="text" name="createTime" id="create-time" lay-verify="date" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">密级</label>
                    <div class="layui-input-block">
                        <select name="secret" lay-filter="secret" lay-verify="required">
                            <option value=""  selected=""></option>
                            <option value="1">秘密</option>
                            <option value="2">机密</option>
                            <option value="3">非密</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">数据现势性</label>
                    <div class="layui-input-block">
                        <input type="text" name="limitTime" id="limit-time" placeholder=" " autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">地区属性</label>
                    <div class="layui-input-block">
                        <input type="text" name="area" lay-verify="required" placeholder="请输入地区属性" autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-block">
                        <input type="text" name="remark"  placeholder="请输入备注" autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-upload">
                    <button type="button" class="layui-btn layui-btn-normal" id="testList">选择多文件</button>
                    <div class="layui-upload-list">
                        <table class="layui-table">
                            <thead>
                            <tr><th>文件名</th>
                                <th>大小</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr></thead>
                            <tbody id="demoList"></tbody>
                        </table>
                    </div>
                    <button type="button" class="layui-btn" id="testListAction">开始上传</button>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="submit">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary" id="reback">返回</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
<script src="/static/layui/layui.js"></script>
<script src="/static/js/data-add.js"></script>
</body>
</html>